package org.hiucung.orangeappupdater.updater;

import org.hiucung.orangeappupdater.updater.net.INetManager;
import org.hiucung.orangeappupdater.updater.net.OkHttpNetManager;

public class AppUpdater {

    private static AppUpdater sInstance = new AppUpdater();

    //网络请求，下载的能力
    //okhttp,volley 那么我们需要做接口隔离,方便开发者直接跟换下载框架setNetManager即可

    private INetManager mNetManager = new OkHttpNetManager();

//    public void setNetManager(INetManager manager){
//        this.mNetManager = manager;
//    }

    public INetManager getNetManager(){
        return mNetManager;
    }

    public static AppUpdater getInstance(){
        return sInstance;
    }
}
